import * as network from '@/utils/request';

import { imei } from '../../config/Apis';


export async function getImeiList(params: any): Promise<any> {
    return network.post(imei.imeiList, {
        data: params,
        requestType: 'form'
    });
}

export async function getImeiDetail(params: any): Promise<any> {
    return network.post(imei.imeiDetail, {
        data: params,
        requestType: 'form'
    });
}

export async function ImeiCreate(params: any): Promise<any> {
    return network.post(imei.imeiCreate, {
        data: params,
        requestType: 'form'
    });
}

export async function ImeiDelete(params: any): Promise<any> {
    return network.post(imei.imeiDelete, {
        data: params,
        requestType: 'form'
    });
}

export async function FindByAuthCode(params: any): Promise<any> {
    return network.post(imei.findByAuthCode, {
        data: params,
        requestType: 'form'
    });
}

export async function ImeiGenCode(params: any): Promise<any> {
    return network.post(imei.genCode, {
        data: params,
        requestType: 'form'
    });
}